package com.colin.dubbo.util;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * 日志工具类，统一创建日志对象
 */
public class LogUtil {
    private static final Logger logger = LoggerFactory.getLogger(LogUtil.class);

    public static void info(String message){
        logger.info(message);
    }
    
    public static void info(String message, Object... params){
        logger.info(message, params);
    }

    public static void error(String message){
        logger.error(message);
    }

    public static void error(String message, Throwable e){
        logger.error(message, e);
    }
    
}
